package com.pet.cloud.merchant.api.client;

import com.pet.cloud.merchant.api.PetcMerchantApiConstants;
import com.pet.cloud.merchant.api.param.CreateParam;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = PetcMerchantApiConstants.SERVICE_NAME, contextId = "XXClient")
public interface XXClient {


    @PostMapping(PetcMerchantApiConstants.CREATE)
    @Headers("Content-Type: application/json")
    void create(@Valid @RequestBody CreateParam param);
}
